package cn.stylefeng.guns.sys.modular.tao.mapper;

import cn.stylefeng.guns.sys.modular.tao.entity.MemberSpecs;
import cn.stylefeng.guns.sys.modular.tao.model.params.MemberSpecsParam;
import cn.stylefeng.guns.sys.modular.tao.model.result.MemberSpecsResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * vip规格表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2019-08-07
 */
@Repository
public interface MemberSpecsMapper extends BaseMapper<MemberSpecs> {

    /**
     * 获取列表
     *
     * @author
     * @Date 2019-08-07
     */
    List<MemberSpecsResult> customList(@Param("paramCondition") MemberSpecsParam paramCondition);

    /**
     * 获取map列表
     *
     * @author
     * @Date 2019-08-07
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") MemberSpecsParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author
     * @Date 2019-08-07
     */
    Page<MemberSpecsResult> customPageList(@Param("page") Page page, @Param("paramCondition") MemberSpecsParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author
     * @Date 2019-08-07
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") MemberSpecsParam paramCondition);

    MemberSpecs getMemberSpecsByLevel(@Param("memberGrade")String memberGrade);

    List<MemberSpecs> getAll();

    MemberSpecs getMemberById(@Param("id") Integer id);
}
